import request from '@/utils/request'

// 查询upay提现列表
export function listUserUpayWithdraw(query) {
  return request({
    url: '/model/userUpayWithdraw/list',
    method: 'get',
    params: query
  })
}
// 查询提现统计数据
export function selectCount() {
  return request({
    url: '/model/userUpayWithdraw/selectCount',
    method: 'get'
  })
}

// 查询upay提现详细
export function getUserUpayWithdraw(id) {
  return request({
    url: '/model/userUpayWithdraw/' + id,
    method: 'get'
  })
}

// 新增upay提现
export function addUserUpayWithdraw(data) {
  return request({
    url: '/model/userUpayWithdraw',
    method: 'post',
    data: data
  })
}

// 修改upay提现
export function updateUserUpayWithdraw(data) {
  return request({
    url: '/model/userUpayWithdraw',
    method: 'put',
    data: data
  })
}

// 删除upay提现
export function delUserUpayWithdraw(id) {
  return request({
    url: '/model/userUpayWithdraw/' + id,
    method: 'delete'
  })
}

// 导出upay提现
export function exportUserUpayWithdraw(query) {
  return request({
    url: '/model/userUpayWithdraw/export',
    method: 'get',
    params: query
  })
}
